package com.gc.business.service;

import com.gc.business.domain.ElevatorFault;
import com.gc.business.domain.ElevatorRepair;
import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * 电梯维修 服务层
 * 
 * @author liujinteng
 * @date 2020-11-20
 */
public interface IElevatorRepairService extends IService<ElevatorRepair> {
    /**
    * 列表查询
    */
    List<ElevatorRepair> list(ElevatorRepair elevatorRepair,List<Long> collect);

    /**
     * 根据故障单保存维修单
     * @param elevatorFault
     * @return
     */
    int saveElevatorRepairByFault(ElevatorFault elevatorFault);


    /**
     * 分审核状态查询维修列表 -- 根据不同人物权限
     * @param reviewType
     * @param userId
     * @param isOverhaul 是否大修(0:是;1:否)
     * @return
     */
    List<ElevatorRepair> selectListByStatus(Long userId ,Long reviewType,String isOverhaul, Integer pageNum, Integer pageSize);

    List<ElevatorRepair> selectRepairList(ElevatorRepair elevatorRepair, Long reviewType, Long attrId, String isOverhaul);
}
